package org.infosys.org.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.infosys.org.domain.Department;
import org.infosys.org.query.DepartmentQuery;

import java.util.List;
/**
* @Description: TODO
* @Author: hank
* @Version: 1.0
* @Date:  2022/6/21 17:52
*/
@Mapper
public interface DepartmentMapper {

    List<Department> loadAll();

    Department loadById(Long id);

    void save(Department department);

    void update(Department department);

    void remove(Long id);

    List<Department> loadQuery(DepartmentQuery departmentQuery);

    Integer loadQueryCount(DepartmentQuery departmentQuery);
}
